package cn.wx.read;

public class Fp {

	public static void main(String[] args) {
		int xuesheng=9; //学生数目
		int laoshi=6; //老师数目
		int sz = (xuesheng/laoshi);
		if(sz == 0) {
			for(int i=0;i<xuesheng;i++){
				System.out.println(i+":"+i);
			}
		}else{
			int e=0;
			for(int i=0;i<xuesheng;i++){
			    if(e==sz) {
			    	System.out.println(i-e+":"+i);
			    	e=0;
			    }else{
			    	e++;
			    }
			}
			if(e>0){
				int a=xuesheng-e+1;
				int b=xuesheng-1;
				System.out.println((a>b?b:a)+":"+b);
			}
		}

	}

}
